home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
auge4000
/
46
/
lib
/
string
/
strrchr.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-20
|
331b
|
25 lines
/*
* STRRCHR.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#include <stddef.h>
#include <string.h>
char *
strrchr(toks, c)
const char *toks;
int c;
{
const char *ptr = toks + strlen(toks);
while (ptr > toks && *ptr != (char)c)
--ptr;
if (*ptr == (char)c)
return(ptr);
return(NULL);
}